package co.china.lottery.account.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ErrorsManager {

	private static Properties errors = new Properties();

	static {
		InputStream in = ErrorsManager.class.getClassLoader()
				.getResourceAsStream("ErrorMessage.properties");
		try {
			errors.load(in);
			in.close();
		} catch (IOException e) {}
	}

	public static String getStrErrorMsg(String key) {
		String desc = null;
		try {
			desc = errors.getProperty(key);
		} catch (Exception e) {
			desc = "";
		}
		return desc;
	}
}